package com.mayflygeek.mayflyask.framework.orm.entity;

import java.util.List;

/**
 * @author 虫虫
 * @team 蜉蝣极客
 * @link www.mayflygeek.com
 * @Emial chongchong@mayflygeek.com
 * 层级结构Entity
 */
public interface ITreeEntity<E> {
	boolean isRoot();
	
	boolean isLeaf();
	
	@SuppressWarnings("unchecked")
	public E addChild(E... entities);
	
	public E getParent();
	
	public void setParent(E parent);
	
	public List<E> getChildren();
	
	public void setChildren(List<E> children);
}
